<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>upload</title>
</head>
<body>
<?php
	require("upfile.php");
	$annexFolder = "annex";
	$smallFolder = "smallimg";
	$markFolder = "mark";
	$includeFolder = "include";
	$img = new UPImages($annexFolder,$smallFolder,$includeFolder);
	//$text = array("fridaying.com","wang");	
	$photo = $img->upLoad("facefile");
	$img->maxWidth = 350 ;//设置生成水印图像值
	$img->maxHeight = 350;//设置生成水印图像值
	$img->toFile = true;
	$newSmallImg = $img->smallImg($photo);
	//$newMark = $img->waterMark($photo,$text);
?>
	<img src='".."' border='0'>
    <script type="text/javascript">
	window.parent.upload('<?php echo $newSmallImg ;?>') ;
	</script>
<?php    
	// echo "<img src='".$newMark."' border='0'><br><br>";
	//echo "<a href='./test.php'>继续上传</a>";
?>

</body>
</html>
